<?php
('Access-Control-Allow-Origin：*');
include("../config/mysql.php");
$subject = addslashes($_REQUEST['subject']);
$questionType = $_REQUEST['questionType'];
$company_id = $_POST["company_id"];

$sql = "SELECT * FROM `questions` WHERE company_id = {$company_id} AND `subject` = '{$subject}' AND `questionType` = '{$questionType}'";
$Mysql = new Mysql();
$res = mysqli_query($Mysql->conn, $sql);
if ($res) {
    echo mysqli_num_rows($res);
} else {
    echo 0;
}


/*关闭连接*/
$Mysql->close();
